package com.oracle.entity;

public class Book {
    private int num;
    private String bookname;
    private String author;
    private String category;
    private String press;
    private double price;
    private double sell;
    private int count;

    public Book() {
    }

    public Book(int num, String bookname, String author, String category, String press, double price, double sell, int count) {
        this.num = num;
        this.bookname = bookname;
        this.author = author;
        this.category = category;
        this.press = press;
        this.price = price;
        this.sell = sell;
        this.count = count;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getBookname() {
        return bookname;
    }

    public void setBookname(String bookname) {
        this.bookname = bookname;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getCategory() {
        return category;
    }

    public void setCategory(String category) {
        this.category = category;
    }

    public String getPress() {
        return press;
    }

    public void setPress(String press) {
        this.press = press;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public double getSell() {
        return sell;
    }

    public void setSell(double sell) {
        this.sell = sell;
    }

    public int getCount() {
        return count;
    }

    public void setCount(int count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "Book{" +
                "num=" + num +
                ", bookname='" + bookname + '\'' +
                ", author='" + author + '\'' +
                ", category='" + category + '\'' +
                ", press='" + press + '\'' +
                ", price=" + price +
                ", sell=" + sell +
                ", count=" + count +
                '}';
    }
}
